package com.grape.dp.observer.spring.event;

import cn.hutool.json.JSONObject;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * 描述:OrderMessageEvent
 * @author: myx
 * @date: 2019/7/29 0029
 * Copyright © 2019-grape. All rights reserved.
 */
@Data
public class OrderMessageEvent extends ApplicationEvent {
    /**
     * 群发消息的内容
     */
    private JSONObject jsonObject;

    /**
     * Create a new ApplicationEvent.
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public OrderMessageEvent(Object source, JSONObject jsonObject) {
        super(source);
        this.jsonObject = jsonObject;
    }
}
